import request from '@/utils/request'
// 获取公司数据
export function get_list(token, data) {
  return request({
    url: 'organization/company/get_list',
    method: 'post',
    params: { token },
    data
  })
}
// 获取公司 部门数据
export function departmentget_list(token, data) {
  return request({
    url: 'organization/department/get_list',
    method: 'post',
    params: { token },
    data
  })
}

// 添加公司数据
export function add(token, data) {
  return request({
    url: 'organization/company/add',
    method: 'post',
    params: { token },
    data
  })
}

// 添加部门数据
export function department_add(token, data) {
  return request({
    url: 'organization/department/add',
    method: 'post',
    params: { token },
    data
  })
}

// 获取公司数据无分页
export function get_select(token, data) {
  return request({
    url: 'organization/company/get_select',
    method: 'post',
    params: { token },
    data
  })
}

// 部门修改
export function department_edit(token, data) {
  return request({
    url: 'organization/department/edit',
    method: 'post',
    params: { token },
    data
  })
}

// 获取单条数据
export function department_info(token, data) {
  return request({
    url: 'organization/department/info',
    method: 'post',
    params: { token },
    data
  })
}

// 删除部门一条数据
export function department_delete(token, data) {
  return request({
    url: 'organization/department/delete',
    method: 'post',
    params: { token },
    data
  })
}

// 删除公司数据
export function company_delete(token, data) {
  return request({
    url: 'organization/company/delete',
    method: 'post',
    params: { token },
    data
  })
}

// 修改公司数据
export function company_edit(token, data) {
  return request({
    url: 'organization/company/edit',
    method: 'post',
    params: { token },
    data
  })
}

// 获取公司单条数据
export function company_info(token, data) {
  return request({
    url: 'organization/company/info',
    method: 'post',
    params: { token },
    data
  })
}
